<%@ page contentType="text/html; charset=UTF-8"%>
<%@include file="../../common/taglibs.jsp"%>
<script type="text/javascript">
    $(document).ready(function () {
        /**
         * 进行校核绑定
         */
        $('#projectEditForm input').each(function () {
            if ($(this).attr('required') || $(this).attr('validType')) {
                $(this).validatebox();
            }
        });

        $('#formProjectbutton').click(function() {
            if (!$("#projectEditForm").form('validate')) {
                return;
            }

            //提交表单
            saveAjaxData("${ctx}/project/save.do", "projectEditForm", "projectWindow", "projectGrid");
        });

        $("#editTable tr:odd").addClass("cssline_1");
    });


</script>

<div>
    <form:form id="projectEditForm" name="projectEditForm" action="${ctx}/project/save.do" method="post" >
        <input type="hidden" name="id" value="${bean.id}" />
        <div>
            <table border="0" cellspacing="1" width="100%" id="editTable">
                <tr class="cssline">
                    <td  class="csslabel">
                        项目名称:
                    </td>
                    <td  class="container">
                        ${bean.name}
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        项目编号:
                    </td>
                    <td  class="container">
                        ${bean.code}
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        项目类型:
                    </td>
                    <td  class="container">
                       ${bean.type.name}
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        原稿名称:
                    </td>
                    <td  class="container">
                       ${bean.sourceName}
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        原语言:
                    </td>
                    <td  class="container">
                        ${bean.souceLanguage.name}
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        目标语言:
                    </td>
                    <td  class="container">
                        ${bean.targetLanguage.name}"/>&nbsp;
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        翻译字数(个):
                    </td>
                    <td  class="container">
                        ${bean.wordCount}&nbsp;
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        开始时间:
                    </td>
                    <td  class="container">
                        ${bean.startDate}
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        结束时间:
                    </td>
                    <td  class="container">
                       ${bean.endDate}&nbsp;
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        是否完成:
                    </td>
                    <td  class="container">
                        <input type="checkbox" name="status"  ${bean.status=="3"?"checked":""} value="3"/>&nbsp;
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        要求:
                    </td>
                    <td  class="container">
                        <textarea type="textarea" name="requirement"   rows="5" cols="55" readonly="true">${bean.requirement}</textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle" align="center">
                        <input type="button" id="formProjectbutton" value="确定" class="btn_Ok">&nbsp;
                        <input type="button" value="取消" class="btn_Del" onclick="closeWindow('projectWindow')">
                    </td>
                </tr>
            </table>

        </div>
    </form:form>
</div>